@import url("./common.less");
@import url("./proTable.less");
@import url("./transition.less");

/* Dashboard.css */
.dashboard-container {
  position: relative;
  width: 100%;
  height: 100vw;
  overflow: hidden;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  /* z-index 设为 -1，确保在最底层 */
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #eff2f9;
}

.color1,
.color2,
.color3,
.color4 {
  position: absolute;
  width: 20vw;
  height: 20vw;
  filter: blur(80px);
  border-radius: 50%;
  animation-duration: 20s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.color1 {
  background-color: pink;
  animation-name: color1jump;
}

.color2 {
  background-color: rgb(157 186 244);
  animation-name: color2jump;
}

.color3 {
  background-color: rgb(220 234 183);
  animation-name: color3jump;
}

.color4 {
  background-color: rgb(180 169 253);
  animation-name: color4jump;
}

@keyframes color1jump {
  0% {
    transform: translateY(-100px);
  }

  50% {
    transform: translateY(50px) translateX(800px) scale(1.4, 1.4);
  }

  100% {
    transform: translateY(400px) translateX(400px) scale(1.2, 1.2);
  }
}

@keyframes color2jump {
  0% {
    transform: translateY(0) translateX(200px);
  }

  50% {
    transform: translateY(200px) translateX(-300px) scale(1.1, 1.1);
  }

  100% {
    transform: translateY(0) translateX(900px) scale(0.7, 0.7);
  }
}

@keyframes color3jump {
  0% {
    transform: translateY(300px) translateX(100px);
  }

  50% {
    transform: translateY(400px) translateX(500px) scale(1.2, 1.2);
  }

  100% {
    transform: translateY(100px) translateX(-400px) scale(1, 1);
  }
}

@keyframes color4jump {
  0% {
    transform: translateY(300px) translateX(100px);
  }

  50% {
    transform: translateY(-100px) translateX(900px) scale(1.3, 1.3);
  }

  100% {
    transform: translateY(600px) translateX(-1000px) scale(1, 1);
  }
}

.content {
  position: relative;
  z-index: 1;
  /* 确保内容在背景上层 */
  margin-top: 69px;
}

.header-icon {
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-right: 38px;
}

.tool-bar-ri .username {
  margin-left: 6px;
  color: rgb(4, 7, 30);
  font-size: 14px;
  font-weight: 700;
}

.header-user {
  width: 136px;
}

.search-img,
.message-img {
  width: 25px;
}

.header-icon .ant-scroll-number {
  min-width: 16px;
  height: 16px;
  line-height: 16px;
}

.iconScreen {
  font-weight: 700;
  font-size: 22px;
}

.ant-tabs-nav {
  border-top: 4px solid #63B0FF;
}

.ant-tabs-extra-content {
  display: none;
}

.tabs-box {
  padding: 0;
}

.ant-tabs-nav {
  .ant-tabs-tab-btn.ant-tabs-tab-active .ant-tabs-tab-btn {
    color: #ffffff !important;
  }

  .ant-tabs-tab {
    width: 132px;
  }

  .ant-tabs-tab-active {
    background-color: #63B0FF !important;
    color: #fff !important;
    height: 45px;
    align-self: flex-start;
    border-radius: 0 0 20px 15px / 0 0 25px 15px !important;
    z-index: 1;
    -webkit-animation: slide-in-left 0.75s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-left 0.75s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;

    &::after {
      content: '';
      position: absolute;
      width: 40px;
      height: 30px;
      right: 100%;
      top: -5px;
      border-radius: 0 30px 0 0 / 0 40px 0 0;
      box-shadow: 15px -2px 0 0 #63B0FF;
      z-index: 0;
    }

    &::before {
      content: '';
      position: absolute;
      width: 40px;
      height: 35px;
      left: 101%;
      top: -5px;
      border-radius: 30px 0 0 0 / 40px 0 0 0;
      box-shadow: -15px -10px 0 0 #63B0FF;
      transform: translateX(-3px);
      z-index: 0;
    }
  }
}

.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #ffffff !important;
}

.ant-tabs-tab-remove .anticon {
  display: inline-block !important;
  color: #ffffff !important;
}

// .anticon {
//   display: none;
// }

.ant-tabs-ink-bar.ant-tabs-ink-bar-animated {
  display: none !important;
}

@-webkit-keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}